package com.mmall.feign.fallBack;

import com.mmall.common.base.ServerResponse;
import com.mmall.feign.ProductFeignService;
import com.mmall.pojo.param.AddProductParam;
import com.mmall.pojo.param.ProductPageParam;
import com.mmall.pojo.param.UpdateProductParam;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

/**
 * @author gg
 * @version ProductFeignFallBack.java, v 0.1 2019-05-06 10:21 gg
 */
@Component
public class ProductFeignFallBack implements ProductFeignService {

    /**
     * 添加商品
     *
     * @param addProductParam AddProductParam
     * @return ServerResponse
     */
    @Override
    public ServerResponse add(@Valid AddProductParam addProductParam) {
        return null;
    }

    /**
     * 添加商品
     *
     * @param updateProductParam UpdateProductParam
     * @return ServerResponse
     */
    @Override
    public ServerResponse update(@Valid UpdateProductParam updateProductParam) {
        return null;
    }

    /**
     * 分页列表 后台管理
     *
     * @param productPageParam ProductPageParam
     * @return ServerResponse
     */
    @Override
    public ServerResponse page(ProductPageParam productPageParam) {
        return null;
    }

    /**
     * 商品详情
     *
     * @param id 商品id
     * @return ServerResponse ItemVo 单个对象
     */
    @Override
    public ServerResponse detail(Long id) {
        return null;
    }

    /**
     * 删除商品
     *
     * @param id 商品id
     * @return ServerResponse ItemVo 单个对象
     */
    @Override
    public ServerResponse del(Long id) {
        return null;
    }
}